/*
 * @Author: scl
 * @Date: 2023-09-16 20:57:13
 * @LastEditTime: 2023-09-16 21:43:32
 * @Description: file content
 */
/*
 * @Author: scl
 * @Date: 2023-09-16 20:57:13
 * @LastEditTime: 2023-09-16 21:00:05
 * @Description: file content
 */
import type { LoginParams } from "@/types/login"
import type { LoginResult } from "@/types/member"
import { http } from "@/utils/http"
/**
 * 小程序登录
 * @param data 请求参数
 */
export const postLoginWxMinAPI = (data: LoginParams) => {
    return http<LoginResult>({
        url: "/login/wxMin",
        method: "POST",
        data
    }
    )
}
/**
 * 
 * @param phoneNumber 模拟手机号码
 * @returns 
 */
export const postLoginWxMinSimpleAPI = (phoneNumber: string) => {
    return http<LoginResult>({
        url: "/login/wxMin/simple",
        method: "POST",
        data: { phoneNumber }
    })
}